import { observable, action, toJS } from 'mobx';
class vipAccount {
  @observable account = {
    reson: '',
    canuse: 0,
    freeze: 0,
    level: 0,
    spend: 0,
  };
  @action changeAccount(val) {
    this.account = val;
    console.log(toJS(this.account));
  }
  clearAccount() {
    this.account = {
      reson: '',
      canuse: 0,
      freeze: 0,
      level: 0,
      spend: 0,
    };
  }
}
export default vipAccount;
